home *** CD-ROM | disk | FTP | other *** search
- sele current
- SET DEVI TO SCREEN
- mbilsel1=.t.
- DO WHIL mbilsel1
- sele current
- SET INDE to currnmbr,currname
- CLEA
- lfile_nmbr=space(6)
- mbilsel2=space(1)
- mbilsel3=space(1)
- mfile_nmbr=space(6)
- @05,20 say 'Print by (S)ingle account or'
- @06,20 say ' (R)ange of accounts'
- @07,20 say ' (cr) to exit'
- @09,46 get mbilsel2 pict '@!'
- READ
- CLEA gets
- IF mbilsel2=' '
- mbilsel1=.f.
- exit
- ENDI
- IF .not. mbilsel2$'SR'
- @17,20 say 'improper input - try again'
- xx=1
- DO WHIL xx<35
- xx=xx+1
- ENDD
- LOOP
- ENDI
- @11,10 say 'Print (A)ll entries or only (C)urrent entries?'
- @13,46 get mbilsel3 pict '@!'
- READ
- IF .not. mbilsel3$'AC'
- @17,20 say 'improper input - try again'
- xx=1
- DO WHIL xx<35
- xx=xx+1
- ENDD
- @13,00
- LOOP
- ENDI
- DO CASE
- CASE mbilsel2='S'
- CLEA
- @05,20 say 'enter file number :' get mfile_nmbr
- READ
- CLEA gets
- FIND '&mfile_nmbr'
- IF eof()
- @17,20 say 'no file with that number - try again'
- xx=1
- DO WHIL xx<35
- xx=xx+1
- ENDD
- LOOP
- ELSE
- @17,10 SAY 'POSITION PRINTER AND HIT RETURN'
- SET CONS OFF
- WAIT
- SET CONS ON
- @17,00
- @17,10 SAY 'PRINTING.....'
- SET CONS OFF
- IF mbilsel3='A'
- DO bill2
- SET DEVI TO SCREEN
- ELSE
- DO bill3
- SET DEVI TO SCREEN
- ENDI
- SET CONS ON
- LOOP
- ENDI
- CASE mbilsel2='R'
- CLEA
- @05,20 say 'enter beginning file number :' get mfile_nmbr
- @06,20 say '(or cr to print all)'
- READ
- CLEA gets
- IF mfile_nmbr=' '
- GOTO top
- mfile_nmbr=file_nmbr
- GOTO bottom
- lfile_nmbr=file_nmbr
- ELSE
- @07,20 say 'enter ending file number :' get lfile_nmbr
- READ
- CLEA gets
- ENDI
- FIND '&LFILE_NMBR'
- IF eof()
- @17,20 say 'inproper input - try again'
- xx=1
- DO WHIL xx<35
- xx=xx+1
- ENDD
- LOOP
- ENDI
- FIND '&mfile_nmbr'
- IF eof()
- @17,20 say 'inproper input - try again'
- xx=1
- DO WHIL xx<35
- xx=xx+1
- ENDD
- LOOP
- ELSE
- @17,10 SAY 'POSITION PRINTER AND HIT RETURN'
- SET CONS OFF
- WAIT
- SET CONS ON
- @17,00
- @17,10 SAY 'PRINTING.....'
- SET CONS OFF
- DO WHIL FILE_NMBR<='&LFILE_NMBR' .and. .not. eof()
- @22,10
- @22,10 say 'printing &mfile_nmbr'
- IF mbilsel3='A'
- DO bill2
- SET DEVI TO SCREEN
- ELSE
- DO bill3
- SET DEVI TO SCREEN
- ENDI
- sele current
- SKIP
- IF file_nmbr>'&lfile_nmbr'.or. eof()
- exit
- ENDI
- MFILE_NMBR=FILE_NMBR
- ENDD
- SET CONS ON
- ENDI
- OTHE
- LOOP
- ENDC
- ENDD
- CURR='022'
- RETU